import {shopListData} from '@/api/shopList'

const state = {
    shopList:{}
};
const mutations = {
    SET_SHOPLIST(state,shopList){
        state.shopList = shopList
    }
};
const actions = {
    async getshopList({commit},{currentIndex,currentIndex2}){
        const result = await shopListData(currentIndex,currentIndex2)
        commit('SET_SHOPLIST',result.data)
    }
};
const getters = {

};
export default {
  state,
  mutations,
  actions,
  getters,
};
